/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package Modele;

import java.util.Collection;
import java.util.HashSet;
import java.util.TreeSet;

/**
 *
 * @author sio
 */
public class Dep implements Comparable <Dep>{
    private String num;
    private Collection <Med> lesMeds = new TreeSet <Med> ();;
    
    public Dep(String num1){
        num=num1;
        
    }
    public String getNum(){
        return this.num;
    }
    public Collection <Med> getLesMeds(){
        return lesMeds;
    }
//    public void ajoutemed(){
//       Collection <Med> colM =DAO.getlesMed();
//       //Collection <Med> colM2 =DAO.getlesMed();
//       for(Med unMed : colM){
//           if(unMed["departement"]==this.num){
//               
//           }
//       }
//    }

    
        public void addM(Med m){
            lesMeds.add(m);
        }
    @Override
    public int compareTo(Dep o) {
        return num.compareTo(o.num);
    }
}
